<div class="widget am-cf">
    <div class="widget-body  am-fr">
    	 <!-- form start -->
        <form class="am-form tpl-form-line-form" data-am-validator id="formDoSubmitDialog">
            <input type="hidden" Name="Id" id="Id" value="{{.m.Id}}">
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">用户名：</label>
                <div class="am-u-sm-9">
                    <input type="text" name="UserName" max="24" placeholder="长度不超过24" value="{{.m.UserName}}" required>
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">姓名</label>
                <div class="am-u-sm-9">
                    <input type="text" name="RealName" max="16" placeholder="长度不超过16" value="{{.m.RealName}}" required>
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">手机号</label>
                <div class="am-u-sm-9">
                    <input type="text" name="Mobile" placeholder="手机号" placeholder="" value="{{.m.Mobile}}" required>
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">邮箱</label>
                <div class="am-u-sm-9">
                    <input type="text" name="Email"  placeholder="邮箱" value="{{.m.Email}}">
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">是否超管</label>
                <div class="am-u-sm-9">
                    <select name="IsSuper" id="IsSuper"  data-am-selected>
                        <option value="false" {{if eq .m.IsSuper false}}selected{{end}}>否</option>
                        <option value="true" {{if eq .m.IsSuper true}}selected{{end}}>是</option>
                    </select>
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">状态</label>
                <div class="am-u-sm-9">
                    <select name="Status" id="Status" data-am-selected>  
                    	<option value="1" {{if eq .m.Status 1}}selected{{end}}>启用</option>                 
                        <option value="0" {{if eq .m.Status 0}}selected{{end}}>禁用</option>
                    </select>
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">主门店</label>
                <div class="am-u-sm-9">
                    <select name="DepartmentId" id="DepartmentId" data-am-selected="{dropUp: 1, 'btnWidth':'100%'}"></select>
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">扩展门店</label>
                <div class="am-u-sm-9">
                    <select name="ExtendDepartment" id="ExtendDepartment" data-am-selected="{dropUp: 1, 'btnWidth':'100%'}" multiple></select>
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">角色</label>
                <div class="am-u-sm-9">
                    <select name="RoleIds" id="Roles" data-am-selected="{dropUp: 1, 'btnWidth':'100%'}" multiple></select>
                </div>
            </div>
             <div class="am-form-group">
                <label class="am-u-sm-3 am-form-label">登录密码</label>
                <div class="am-u-sm-9">
                   <input type="text" name="UserPwd" placeholder="输入登录密码" {{if eq .m.Id 0}} required {{end}}>
                   {{if ne .m.Id 0}}<small>留空则不修改密码。</small>{{end}}
                </div>
            </div>
            
            <div class="am-form-group">
                  <label class="am-u-sm-3 am-form-label"></label>
                  <div class="am-u-sm-9">
                    <button class="am-btn am-btn-secondary" type="submit">确认提交</button>
                    <button class="am-btn am-btn-default" type="reset">重置</button>
                  </div>
            </div>
        </form>
    </div>
</div>